/* CalcController */

#import <Cocoa/Cocoa.h>
#import "AMShellWrapper.h"


@interface CalcController : NSObject <AMShellWrapperController>
{
    IBOutlet NSTextField *inputField;
    IBOutlet NSTextView *resultField;
	IBOutlet id progressIndicator;
	AMShellWrapper *shellWrapper;
}

- (void)textDidEndEditing:(NSNotification *)aNotification;
-(void)awakeFromNib;
- (void)setShellWrapper:(AMShellWrapper *)newShellWrapper;

- (void)processLaunchException:(NSException *)exception;



  // ============================================================
  // conforming to the AMShellWrapperController protocol:
  // ============================================================

- (void)appendOutput:(NSString *)output;
  // output from stdout

- (void)appendError:(NSString *)error;
  // output from stderr

- (void)processStarted:(id)sender;
  // This method is a callback which your controller can use to do other initialization
  // when a process is launched.

- (void)processFinished:(id)sender withTerminationStatus:(int)resultCode;
  // This method is a callback which your controller can use to do other cleanup
  // when a process is halted.




@end
